package com.ys.enume.wanli;

public class WfSubUserEnum {
	
	public enum Type {
		S("SUCCESS", "S"),
		POST("POST请求", "POST"),
		PRIMARYACCOUNTNUMBER("primary account number", "主账号"),
		BYPASSACCOUNT("bypass account", "子账号"),
		INQUIRYSUBUSER("集成商可使用此接口获取万里汇主账号和子账号的信息", "/amsin/api/v1/business/user/inquirySubuser"),
		INQUIRYBALANCE("可调用inquiryBalance接口查询账户余额", "/amsin/api/v1/business/account/inquiryBalance"),
		INQUIRYSTORE("集成商可调用此接口获取店铺信息以及店铺关联账号的信息", "/amsin/api/v1/business/store/inquiryStore"),
		INQUIRYBENEFICIARYLIST("集成商可调用此接口获取交易账单。", "/amsin/api/v1/business/account/inquiryStatementList"),
		CONSULTPAYOUT("在调用createPayout API进行转账之前，调用本接口获取转账相关信息。", "/amsin/api/v1/business/fund/consultPayout"),
		CREATEPAYOUT("调用本接口向万里汇外部账户进行转账（比如转账到银行卡或支付宝账户)", "/amsin/api/v1/business/fund/createPayout"),
		CREATETRANSFER("调用本接口进行资金的转账。资金会转入到另一个万里汇账户，即资金在万里汇账户之间流通。", "/amsin/api/v1/business/fund/createTransfer"),
		AUTHORIZED("已经授权", "AUTHORIZED"),
		NEVER_AUTHORIZED("未授权", "NEVER_AUTHORIZED"),
		CNH("中国离岸人民币", "CNH"),
		USD("美元", "USD"),
		EUR("欧元", "EUR"),
		JPY("日元", "JPY"),
		HKD("港币", "HKD"),
		AUD("澳大利亚", "AUD"),
		GBP("英镑", "GBP");
		public String name;
		public String value;

		private Type(String name, String value) {
			this.name = name;
			this.value = value;
		}

		public static String getName(String value) {
			for (Type e : Type.values()) {
				if (e.value == value) {
					return e.name;
				}
			}

			return "";
		}
	}
}
